import { DynamicModule, Module } from '@nestjs/common';
import { RedisService } from './redis.service';
import { RedisController } from './redis.controller';

@Module({
  controllers: [RedisController],
  providers: [RedisService],
  imports: [],
})
export class RedisModule {
  static forRoot(entities: any[], options: any) {
    return {
      module: RedisModule,
      controllers: [RedisController],
      providers: [RedisService],
      imports: [],
    };
  }
  static register(): DynamicModule {
    return {
      module: RedisModule,
      controllers: [RedisController],
      providers: [RedisService],
      imports: [],
    };
  }
}
